package com.hnu.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hnu.seckill.entity.TUser;
import com.hnu.seckill.vo.LoginVo;
import com.hnu.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2025-04-16
 */
public interface IUserService extends IService<TUser> {

    RespBean doLogin(LoginVo loginVo, HttpServletResponse response, HttpServletRequest request);


    TUser getUserByCookie(String ticket, HttpServletRequest request, HttpServletResponse response);

    RespBean updatePassword(String userTicket,String newPassword,HttpServletRequest request, HttpServletResponse response);
}
